import request from '@/utils/request'

// 查询网联成品仓库管理列表
export function listFpWarehouseWl(query) {
  return request({
    url: '/fpWarehouse/fpWarehouseWl/list',
    method: 'get',
    params: query
  })
}

// 查询网联成品仓库管理详细
export function getFpWarehouseWl(id) {
  return request({
    url: '/fpWarehouse/fpWarehouseWl/' + id,
    method: 'get'
  })
}

// 新增网联成品仓库管理
export function addFpWarehouseWl(data) {
  return request({
    url: '/fpWarehouse/fpWarehouseWl',
    method: 'post',
    data: data
  })
}

// 修改网联成品仓库管理
export function updateFpWarehouseWl(data) {
  return request({
    url: '/fpWarehouse/fpWarehouseWl',
    method: 'put',
    data: data
  })
}

// 成品出入库
export function updateFpWarehouseWlQuantity(data) {
  return request({
    url: '/fpWarehouse/fpWarehouseWl/updateFpWarehouseWlQuantity',
    method: 'put',
    data: data
  })
}

// 删除网联成品仓库管理
export function delFpWarehouseWl(id) {
  return request({
    url: '/fpWarehouse/fpWarehouseWl/' + id,
    method: 'delete'
  })
}
